package com.mall.business.domain;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mall.common.annotation.Excel;
import com.mall.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;

/**
 * 一客一价对象 t_product_user_money
 *
 * @author ruoyi
 * @date 2025-04-03
 */
@Data
@TableName(value = "t_product_user_money")
@EqualsAndHashCode(callSuper = true)
public class TProductUserMoney extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;
    /**
     * "产品Id"
     */
    @Excel(name = "产品Id")
    @NotBlank(message = "产品不能为空")
    private String productId;
    /**
     * "用户Id"
     */
    @NotBlank(message = "用户不能为空")
    private String userId;
    /**
     * "价格"
     */
    @Excel(name = "价格")
    private BigDecimal price;

    /**
     * "用户名称"
     */
    @TableField(exist = false)
    private String nickName;

    /**
     * "产品名称"
     */
    @TableField(exist = false)
    private String productName;


    /**
     * "产品图片"
     */
    @TableField(exist = false)
    private String productImage;

}
